 var bidding = new Vue({

    el: "#bidding",

    data: {
        fileList:[],
        //查找询价单位
        biddingName:[],
        //时间范围信息
        TimeRange: [],
        //横向菜单列表
        goodsType:[],
        //采购单信息
        QuoteOrCompare:{
            commodityName:'',
            commodityNum:'',
            shippingAddress:'',
            deadline:'',
            startTime:'',
            priceCap:'',
            postscript:'',
            contrastType:''
        }



    },
    //提交时间方法
    methods: {
        confirmFrom:function () {
            debugger
            var _this = this;
            $("#fileSubmit").submit();
            _this.fileList;
            _this.QuoteOrCompare.startTime = _this.TimeRange[0];
            _this.QuoteOrCompare.deadline = _this.TimeRange[1];
            $.post("/home/quote_or_compare/addQuoteOrCompare",
                {"QuoteOrCompare": JSON.stringify(_this.QuoteOrCompare),"fileList":_this.fileList} ,
                function (data) {
            });
            
        },

        handleRemove:function(file, fileList) {
            console.log(file, fileList);
        },
        handlePreview:function(file) {
            console.log(file);
        }
    },



    //页面加载后的初始化方法
    created: function () {
        var _this = this;
        //初始化询价单位
        var biddingNameShow = [

            {src:"../lib/images/tj1.png",companyName:"甘肃锐智信息科技有限公司",name:"张三：18995949705",address:"甘肃省张掖市滨河新区"}


        ];
        _this.biddingName = biddingNameShow;
        var goodsTypeList = [
            {name: "询价表", href: "../home/offers.html"},
            {name: "报价单", href: "../home/quotation.html"},
        ];
        _this.goodsType = goodsTypeList;//后台动态添加进入
    }
});